from rest_framework import serializers

from file_manage.model_serializers import FileManageSerializer
from utils.decorators.swagger import data_response_decorator


class FileUploadSerializer(serializers.Serializer):
    file = serializers.Field(label='文件', required=True)
    path = serializers.CharField(label='路径', required=True)
    file_desc = serializers.CharField(label='文件描述', required=False, allow_blank=True)
    file_tag = serializers.CharField(label='文件标签', required=False, allow_blank=True)


@data_response_decorator()
class FileUploadResponseSerializer(FileManageSerializer):
    pass
